<%--
  Created by IntelliJ IDEA.
  User: fu
  Date: 2022/3/26
  Time: 22:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--导入taglib--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>商品列表</title>
</head>
<body>
    <table width="600px" height="300px" cellpadding="0" border="1px" align="center">
        <tr>
            <th>商品编号</th>
            <th>商品名称</th>
            <th>商品价格</th>
            <th>商品描述</th>
            <th>其他操作</th>
        </tr>

        <c:forEach items="${list}" var="shop">
            <tr align="center">
                <td>${shop.shopId}</td>
                <td>${shop.shopName}</td>
                <td>${shop.shopPrice}</td>
                <td>${shop.shopDesc}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/shop/find?shopId=${shop.shopId}">修改</a>
                    <a href="${pageContext.request.contextPath}/shop/delte?shopId=${shop.shopId}">删除</a>
                    <a href="${pageContext.request.contextPath}/shop/toadd">添加</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
